package com.jn.exam.paperConsumer.mapper;

import com.jn.exam.paperConsumer.entity.PaperQuestionAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学生答题答案 Mapper 接口
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-02-21
 */
public interface PaperQuestionAnswerMapper extends BaseMapper<PaperQuestionAnswer> {

    boolean saveTotalScore(Map<String, Object> param);

    boolean saveOrUpdateAnswer(PaperQuestionAnswer paperQuestionAnswer);

    List<Map<String, Object>> getStatisticalOfOnePaperQuestion(String paperQuestionId);

    List<Map<String, Object>> getMaxMinAvgOfOnePaperQuestion(String paperQuestionId);
}
